<!-- <template>
  <ty-plm-dialog
    v-model="vModel"
    @open="openDialog"
    :options="{
      title: $t('basic.title.selectObject'),
      width: 1200,
      customClass: isAdvancedSearch ? 'select-object-dialog' : 'select-object-dialog-custom',
      appendToBody: true
    }"
  >
    <select-object-content
      :field="field"
      :customUrlParams="customUrlParams"
      ref="selectObjectContentRef"
      @confirm="sendSelectData"
    ></select-object-content>
    <template #footer>
      <ty-plm-dialog-footer class="changeOrderViewBaseDialogFooter">
        <template v-for="item in btnOptions" :key="item.title">
          <ty-plm-button v-if="!item.hide" :options="item" @click="operate(item.key)" />
        </template>
      </ty-plm-dialog-footer>
    </template>
  </ty-plm-dialog>
</template>

<script setup>
import basic from '@common/basic';
import formDesigner from '@common/form-designer';
import selectObjectContent from '@/basic/components/ty-select-object/select-object-content.vue';
//const selectObjectContent = basic.getExportResource('@/basic/components/ty-select-object/select-object-content.vue');
// import { createProps, createEmits, useSelectObjectDialog, useOverride } from './composables/ty-select-object-dialog.js';
//  const createProps= basic.getExportResource('@/basic/components/ty-select-object/composables/ty-select-object-dialog.js')
const createEmits= basic.getExportResource('@/basic/components/ty-select-object/composables/ty-select-object-dialog.js')
const useSelectObjectDialog= basic.getExportResource('@/basic/components/ty-select-object/composables/ty-select-object-dialog.js')
const useOverride= basic.getExportResource('@/basic/components/ty-select-object/composables/ty-select-object-dialog.js')

    console.log('===============')
    console.log(createProps());
    console.log(createEmits());
defineOptions({
  name: 'SelectObjectDialog',
  inheritAttrs: false
});

// const props = defineProps(createProps());
// const emit = defineEmits(createEmits());

const { vModel, btnOptions, operate, openDialog, selectObjectContentRef, sendSelectData, isAdvancedSearch } = (
  useOverride || useSelectObjectDialog
)(props, emit);
</script>
<style lang="scss">
.select-object-popover.el-popover.el-popper {
  padding: 0;
}
.select-object {
  min-height: 30px;
  width: 100%;
  .tox.tox-tinymce {
    box-sizing: content-box;
  }
}
.select-object-dialog-custom {
  height: 605px !important;
}
.select-object-dialog-custom,
.select-object-dialog {
  height: 645px;
  margin-top: 50px;
  .el-dialog__body {
    height: calc(100% - 110px) !important;
  }
  .top-search {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 12px;
    .search-input {
      width: 160px;
      margin-right: 8px;
    }
  }
  .select-object-pagination {
    margin-top: 12px;
    .ty-base-pagination--select {
      overflow: hidden;
    }
  }
}
</style> -->
